package com.guoxin.chapter2.synchronizedblocklockall.test3;

public class MyObject {
	/**
	 * 同步锁为当前实例 
	 */
	public  void speedPringString() {
		synchronized (this) {
			System.out.println("speedPringString __getLock time=" + System.currentTimeMillis() + " run ThreadName="
					+ Thread.currentThread().getName());
			System.out.println("-------------------------");
			System.out.println("speedPringString __releaseLock time=" + System.currentTimeMillis() + " run ThreadName="
					+ Thread.currentThread().getName());
		}
	}
}
